{{classVarName}}Decoder : Decoder {{classname}}
{{classVarName}}Decoder =
    {{#parent}}Decode.list {{vendorExtensions.x-decoder}}{{/parent}}{{^parent}}decode {{classname}}
{{#allVars}}{{^discriminatorValue}}        |> {{>fieldDecoder}}
{{/discriminatorValue}}{{/allVars}}{{/parent}}